<?php
/**
 * xushuhui
 * 2017/8/4
 * 15:57
 */

namespace app\index\model;


class Order extends BaseModel
{
	public function getStatusAttr($value)
	{
		$status = [1=>'未支付',2=>'已支付'];
		return $status[$value];
	}
	public function plan()
	{
		return $this->belongsTo('plan','planid','id');
	}

	public function wxuser()
	{
		return $this->belongsTo('wxuser','uid','uid');
	}
}